package exo12;

import exception.MonException;

public class Finally {

	public static void f(int n) {
		try {
			if (n == 2)
				throw new MonException("catch dans f, n = " + n);
		} catch (MonException except) {
			System.out.println(except.getMessage());
		} finally {
			System.out.println("dans finally, n = " + n);
		}
	}

	public static void main(String[] args) {
		//int n;
		f(1);
		f(2);
	}

}
